package org.bankabeule.ui.application;

import org.bankabeule.ui.views.AccountsView;
import org.bankabeule.ui.views.TagsView;
import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();

        // Add left folder
        IFolderLayout left = layout.createFolder("left", IPageLayout.LEFT, 0.3f, editorArea); //$NON-NLS-1$
        left.addView(AccountsView.ID);
        layout.getViewLayout(AccountsView.ID).setCloseable(false);

        // Add right folder
        IFolderLayout right = layout.createFolder("right", IPageLayout.RIGHT, 0.6f, editorArea); //$NON-NLS-1$
        right.addView(TagsView.ID);
        
	}
}
